<a href="<?php echo $data->getDetailLink(); ?>">
    <div class="item-post">            
        <img alt="<?php echo $data->alt ?>" width="160px" height="120px" src="<?php echo Yii::app()->createUrl($data->main_image)?>"/>
        <div class="post-content">
            <div class="post-title"><?php echo $data->title; ?></div><?php if($data->hot == 1): ?><span><img alt="" src="<?php echo Yii::app()->createUrl('css/images/icon-hot-big.gif') ?>"/></span><?php endif;?>
            <div class="post-date"><?php echo date('d/m/Y', strtotime($data->create_time))?></div>
            <div class="post-sapo"><?php echo $data->sapo ?></div>
        </div>            
    </div>
</a>    

